﻿@model MS.Entities.MS_Base_Function

@{
    ViewBag.Title = "功能管理";
    Layout = "~/Areas/BMS/Views/Shared/_Layout.cshtml";
}
@section head {
    <link href="~/Scripts/lib/jquery-treegrid/jquery.treegrid.min.css" rel="stylesheet" />
    <link href="~/Scripts/lib/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" />
}
@section script{
    <script>
        var id = @Model.Id;
    </script>
}
<div class="nav-bar"> 基础管理 > <a class="padding-0-4-0-4" href="/BMS/Function"> 菜单管理 </a> > 功能管理 </div>
<div class="container-fluid p-t-15">
    <div class="row">
        <div class="col-lg-12">

            <div class="card">
                <header class="card-header">
                    <div id="toolbar" class="toolbar-btn-action">
                        <a id="btnBack" href="/BMS/Function" class="btn btn-default m-r-5">
                            <span class="mdi mdi-keyboard-backspace" aria-hidden="true"></span>返回
                        </a>
                        <button id="btnAdd" type="button" class="btn btn-primary m-r-5">
                            <span class="mdi mdi-plus" aria-hidden="true"></span>新增
                        </button>
                    </div>
                    <div class="page-loading btn"></div>
                </header>
                <div class="card-body">
                    
                    <table class="tree-table min-table-size"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<!--模态框层-->
<div class="modal fade" id="dialogModal" tabindex="-1" role="dialog" aria-labelledby="dialogModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h6 class="modal-title" id="dialogModalTitle">新增菜单</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="form">
                    <input type="hidden" id="id" value="0" />
                    <input type="hidden" id="pid" value="@Model.Id" />
                    <div class="form-group">
                        <label for="pid">上级菜单</label>
                        <input class="form-control"  type="text" placeholder="@Model.Name" readonly value="@Model.Name">
                    </div>
                    <div class="form-group">
                        <label for="name" class="col-form-label">功能名称</label>
                        <input type="text" class="form-control" id="name" name="name" placeholder="功能名称">
                    </div>
                    <div class="form-group">
                        <label for="url" class="col-form-label">URL</label>
                        <input type="text" class="form-control" id="url" name="url" placeholder="URL">
                    </div>
                    
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="btnSave">保存</button>
            </div>
        </div>
    </div>
</div>


